<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initConfiguration(){
		$options=$this->getOptions();
		//registry the webservice configuration
		$webserviceOptions=$options["webservice"];
		Zend_Registry::set("webOptions", $webserviceOptions);
		//registry the system configuration
		$systemOptions=$options["system"];
		Zend_Registry::set("sysOptions", $systemOptions);
		
	}
	
	protected  function _initPagiantion(){
		Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
	}
	
	protected  function _initViewHelpers(){
		$this->bootstrap('layout');
		$layout=$this->getResource("layout");
		$view=$layout->getView();
		$view->doctype("XHTML1_STRICT");
		$view->headMeta()->appendHttpEquiv('Content_Type','text/html;charset=utf-8');
		
	}
	
	protected  function _initNavigation(){
		$this->bootstrap('layout');
		$layout=$this->getResource("layout");
		$view=$layout->getView();
		
		$config=new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml','nav');
		
		$navigation=new Zend_Navigation($config);
		Zend_Registry::set("Zend_Navigation", $navigation);
		$view->navigation($navigation);
		
		
		
		
	}

}

